package com.zh.util;

import java.util.Calendar;

/**
 * @author: 96199
 * @className: MyUtil
 * @description:
 * @date: 2021/6/25 8:28
 * @version: 0.1
 * @since: jdk1.8
 */
public class MyUtil {
    public static Long getDay(Long oldDay){
        long timeInMillis = Calendar.getInstance().getTimeInMillis();
        return (timeInMillis - oldDay)/ 1000 / (60 * 60 * 24);
    }

}
